package com.mashibing.apiboss.service.impl;

import com.mashibing.apiboss.remote.ServiceDriverUserClient;
import com.mashibing.apiboss.service.DriverUserService;
import org.mashibing.dto.Car;
import org.mashibing.dto.DriverUser;
import org.mashibing.dto.ResponseResult;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @author:
 * @create: 2024/4/26 16:32
 * @description:
 */
@Service
public class DriverUserServiceImpl implements DriverUserService {

    @Autowired
    private ServiceDriverUserClient serviceDriverUserClient;

    @Override
    public ResponseResult addDriverUser(DriverUser driverUser) {
        return serviceDriverUserClient.addUser(driverUser);
    }

    @Override
    public ResponseResult updateDriverUser(DriverUser driverUser) {
        return serviceDriverUserClient.updateUser(driverUser);
    }

    @Override
    public ResponseResult addCar(Car car) {
        return serviceDriverUserClient.addCar(car);
    }
}
